// 两秒后打印一个11
const sleep = (time) => {
  return new Promise((resolve) => {
    setTimeout(resolve, time)
  })
}
sleep(100).then(() => {
  console.log('11');
})